var lvjs={
  first:{
    at:[],
    bat:[]
  },
  vu:null,
  //存档读取
  load(data){
    const vu=this.vu
    this.first=data.first
    vu.round.lock=false
    vu.round.turn='wo'
    vu.$refs.music.set('../asset/music/流浪的骑士.mp3')
  },
  init(vu){
    this.vu=vu
  },
  //关卡开始前
  async beforeBegin(){
    const vu=this.vu
    vu.$refs.music.set('../asset/music/流浪的骑士.mp3')
  },
  //关卡开始
  async begin(){
    const vu=this.vu
    let hero={}
    Object.assign(hero,vu.data.hero.wo,vu.data.hero.enemy)
  },
  //我方回合
  async woTurn(){
    const vu=this.vu
    let hero={}
    Object.assign(hero,vu.data.hero.wo,vu.data.hero.enemy)
    vu.$refs.music.set('../asset/music/流浪的骑士.mp3')
  },
  //友方回合
  async friendTurn(){
    const vu=this.vu
    let hero={}
    Object.assign(hero,vu.data.hero.wo,vu.data.hero.enemy)
  },
  //敌方回合
  async enemyTurn(){
    const vu=this.vu
    let hero={}
    Object.assign(hero,vu.data.hero.wo,vu.data.hero.enemy)
    vu.$refs.music.set('../asset/music/利昂.mp3')
  },
  //AI将领行动前
  async beforeHero(xy){
    const vu=this.vu
    let hero={}
    Object.assign(hero,vu.data.hero.wo,vu.data.hero.enemy)
  },
  //将领移动后
  async afterMove(to){
    const vu=this.vu
    let hero={}
    Object.assign(hero,vu.data.hero.wo,vu.data.hero.enemy)
  },
  //AI部队行动结束后
  async afterTroops(xy){
    const vu=this.vu
    let hero={}
    Object.assign(hero,vu.data.hero.wo,vu.data.hero.enemy)
  },
  //攻击前
  async beforeAttack(from,target){
    const vu=this.vu
    let hero={}
    Object.assign(hero,vu.data.hero.wo,vu.data.hero.enemy)
  },
  //将领死亡前
  async beforeDie(role){
    const vu=this.vu
    let hero={}
    Object.assign(hero,vu.data.hero.wo,vu.data.hero.enemy)
  },
  async afterDie(role){
    const vu=this.vu
    let hero={}
    Object.assign(hero,vu.data.hero.wo,vu.data.hero.enemy)
  },
}